//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "tyr_artillery\fn_callArtillery.sqf"
#include <core_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

private ["_params","_type","_salvos"];
DEFAULT_PARAM(_type,0,"");
DEFAULT_PARAM(_salvos,1,1);

if (visibleMap) then {
	openMap(false);
};
_params = [player, playerSide, _type, _salvos, GVAR(position)];
//[1,_params,QUOTE(FUNC(fire))] call mso_core_fnc_ExMP;
["TYR",QGVAR(CALLARTY),_params,"server"] call IFUNC(rpc);
systemChat localize "STR_TYR_ARTY_SENT";

[QGVAR(MAP_EVT_ID), "onMapSingleClick"] call BIS_fnc_removeStackedEventHandler;

TRACE("End");
TMFPROFILERSTOP;
